
import React from 'react';
import {Route,IndexRedirect} from 'react-router';
import App from './app.js';
//主页
import MainPage from '../components/main.page/main.page.js';
import AppHome from '../components/main.page/home/index.js'
import AppShop from '../components/main.page/go/index.js'
import AppCircle from '../components/main.page/circle/index.js'
import PersonalCenter from '../components/main.page/personal.center/index.js'
const routes=(
    <Route path="/" component={App}>
        <IndexRedirect to="/home/index" />
        <Route path="home" component={MainPage} >
            <Route path="index" component={AppHome} />
            <Route path="go" component={AppShop} />
            <Route path="circle" component={AppCircle} />
            <Route path="center" component={PersonalCenter}/>
        </Route>
    </Route>
)

export default  routes